package it.afs.worklog.application.form;

import it.afs.utils.PropertyManager;

import java.util.Date;

import org.apache.wicket.extensions.markup.html.form.DateTextField;
import org.apache.wicket.extensions.yui.calendar.DatePicker;
import org.apache.wicket.model.IModel;

public class ShortDateTextField extends DateTextField
{
	private static final long serialVersionUID = 385182377684699224L;

	public ShortDateTextField(String id, IModel<Date> model) {
		super(id, model, PropertyManager.getValue("date.shortformat"));
		add(new DatePicker());
	}

	public ShortDateTextField(String id) {
		super(id, PropertyManager.getValue("date.shortformat"));
		add(new DatePicker());
	}	
}
